package org.gpf.decorator.girl;

public class Main {

	public static void main(String[] args) {

		Girl g1 = new AmericanGirl(); // 没有使用装饰模式
		System.out.println(g1.getDescription());

		Girl g2 = new GoldenHair(new AmericanGirl()); // 加上金发
		System.out.println(g2.getDescription());
		Girl g3 = new Tall(g2); // 再加上身材高大
		System.out.println(g3.getDescription());

		Girl g4 = new Tall(new GoldenHair(new AmericanGirl())); // 一步到位
		System.out.println(g4.getDescription());
	}

}
